package com.example.building_material_mannager.service.impl;

import com.example.building_material_mannager.entity.Supplier;
import com.example.building_material_mannager.mapper.SupplierMapper;
import com.example.building_material_mannager.service.SupplierService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Resource
    SupplierMapper supplierMapper;

    @Override
    public List<Supplier> showSupplier(Supplier supplier) {
        List<Supplier> suppliers = supplierMapper.showSupplier(supplier);
        return suppliers;
    }

    @Override
    public boolean addSupplier(Supplier supplier) {
        boolean re=supplierMapper.addSupplier(supplier);
        return re;
    }

    @Override
    public boolean delSupplier(Integer sid) {
        boolean re=supplierMapper.delSupplier(sid);
        return re;
    }

    @Override
    public boolean upSupplier(Supplier supplier) {
        boolean re=supplierMapper.upSupplier(supplier);
        return re;
    }
}
